package com.lfy.modules.blog.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName role
 */
@TableName(value ="role")
@Data
public class RoleEntity implements Serializable {
    /**
     * 
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    /**
     * 角色名字
     */
    @TableField(value = "role_name")
    private String roleName;
    /**
     * 角色标识
     */
    @TableField(value = "role_key")
    private String roleKey;
    /**
     * 角色等级
     */
    @TableField(value = "role_lev")
    private Integer roleLev;

    /**
     * 
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 
     */
    @TableField(value = "update_time")
    private Date updateTime;
    /**
     * 创建者
     */
    @TableField(value = "create_by")
    private Long createBy;
    /**
     * 创建者ip
     */
    @TableField(value = "create_ip")
    private String createIp;
    @TableField(value = "create_ip_address")
    private String createIpAddress;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}